package com.tianji.api.client.remark;

import com.tianji.api.client.remark.fallBack.RemarkClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

@FeignClient(value = "remark-service", fallbackFactory = RemarkClientFallback.class, path = "likes")
public interface RemarkClient {
    /**
     * 查询用户是否点赞
     *
     * @param bizIds 业务id
     * @return
     */
    @GetMapping("/list")
    Set<Long> isLikeStatusAndUser(@RequestParam("bidzIds") Iterable<Long> bizIds);
}
